/*
    用户管理相关的API请求函数
*/
import request from '@/utils/request'

const api_name = '/admin/system/sysUser'

export default {
    getCurrentUser() {
        return request({
            url: `${api_name}/current`,
            method: 'get',
        })
    },

    updateAvatar(data) {
        return request({
            url: `${api_name}/avatar`,
            method: 'put',
            data: {
                avatar: data
            }
        })
    },

    updateUser(data) {
        return request({
            url: `${api_name}/update`,
            method: 'put',
            data: data
        })
    },


}